package com.lzy.wzy.result;

public enum ResponseCode {

    SUCCESS(200,"成功"),

    FAILURE(500,"失败"),

    NullPOINT(501,"参数为空"),


    EXISTED(204,"已存在"),

    //验证码错误
    VERIFICATION_CODE_ERROR(102, "验证码错误"),
    //格式错误
    WRONG_FORMAT(103, "格式错误"),
    //手机号格式错误
    MALFORMED_PHONE_NUMBER(104, "手机号格式错误"),




    REQUEST_FAILURE(40004,"请求失败"),

    PARAMETER_IS_EMPTY(5001,"参数不能为空"),

    //密码格式错误
    PASSWORD_FORMAT_IS_WRONG(105, "密码格式不合规，长度8-20个字节，至少包含一个数字和一个字母，且不能有空格。"),
    //登陆失败，用户尚未注册
    USER_NO_REGISTER(106, "登陆失败，用户尚未注册"),
    //登陆失败，用户尚未注册
    WRONG_PASSWORD(107, "登陆失败，密码错误"),
    //认证尚未通过
    CERTIFICATION_HAS_NOT_PASSED(108, "认证尚未通过"),

    VERIFICATION_CODE_NULL(109, "验证码不能为空"),

    DISABLE_USER(110,"用户被禁用"),

    LOCKED_USER(111,"用户被锁定"),

    EXPIRED_USER(112,"过期用户"),

    USER_NOT_EXITS(113,"用户不存在"),

    LOCK_WORK_ORDER(114,"工单被锁定"),

    //注销用户
    LOG_OUT_USER(200, "注销用户"),

    ILLEGAL_REQUEST(505,"非法请求"),

    NPE(203,"参数不能为空"),

    DEPARTMENT_ERROR(205,"部门选择错误")

    ;

    private Integer status;

    private String msg;

    ResponseCode(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public Integer getCode() {
        return status;
    }

    public void setCode(Integer code) {
        this.status = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
